package com.wlient.basic.designPattern.StateMode.pojo;

import com.wlient.basic.designPattern.StateMode.HotelState;
import com.wlient.basic.designPattern.StateMode.HotelStateEnum;

//2.2 实现各种状态类：预定状态类
public class BookedState implements HotelState {
    private HotelStateEnum state;

    @Override
    public void operate() {
        System.out.println("房间已预定，入住该房间");
        state = HotelStateEnum.CHECKIN_STATE;
    }
}